<?php

$this->breadcrumbs = array(
    'Kelola Administrator',
    'Daftar Grup Administrator' => array('list')
);

?>

<h3>Daftar Grup Administrator</h3>

<?
$this->menu=array(
	array('label'=>'Tambah Group Admin', 'url'=>array('create')),
	array('label'=>'List Group Admin', 'url'=>array('list')),
);

$this->widget('zii.widgets.grid.CGridView', array(
    'id' => 'sys-admin-group-grid',
    'dataProvider' => $model->search(),
    'filter' =>  $model,
    'columns' => array(        
        array(            
            'header' => 'No',
            'value' => '($row+1)',
            'htmlOptions' => array('style' => 'text-align:center;'),
        ),
        'administrator_group_title',
        array(
            'header' => $model->getAttributelabel('admin_group_is_active'),
            'type' => 'image',
            'value' => '($data->administrator_group_is_active == 1 ? Yii::app()->request->baseUrl . "/images/stat-active.png" : Yii::app()->request->baseUrl . "/images/stat-inactive.png")',
        ),
        array(
            'header' => 'Action',
            'class' => 'CButtonColumn',
            'template' => '{view}{update}{delete}',
            'buttons' => array(
                
                'update' => array(
                    'imageUrl' => Yii::app()->request->baseUrl . '/images/icon/adm_edit_navy.png',
                    'visible' => $this->action_update,
                ),
                'delete' => array(
                    'imageUrl' => Yii::app()->request->baseUrl . '/images/icon/adm_delete_navy.png',
                    'visible' => $this->action_delete,
                ),
            ),
        ),
    ),
    'selectableRows' => 1,
    'selectionChanged' => 'userClicks',
    'pager' => array(
        'cssFile' => Yii::app()->params['backendUrl'] . '/css/style-pager.css',
        'header' => '',
        'firstPageLabel' => 'First',
        'prevPageLabel' => 'Previous',
        'nextPageLabel' => 'Next',
        'lastPageLabel' => 'Last',
    ),
    'cssFile' => Yii::app()->params['backendUrl'] . '/css/style-gridview.css',
    'loadingCssClass' => '',
));
?>
